/**
 * Created with IntelliJ IDEA.
 *
 * @author: cxs
 * @date: 2023/6/27
 * @time: 20:18
 * @className：CustomerMapper
 * @description：
 */
package com.bailan.bus.mapper;

import com.bailan.bus.domain.Customer;
import com.bailan.bus.vo.CustomerVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomerMapper {
    /**
     * 分页查询
     * @param customerVo
     * @return
     */
     List<Customer> queryAllCustomer(CustomerVo customerVo);

    /**
     * 添加用户
     * @param customerVo
     */
    void insertCustomer(CustomerVo customerVo);

    /**
     * 修改用户
     * @param customerVo
     */
    void updateByPrimaryKey(CustomerVo customerVo);

    /**
     * 根据identity删除
     * @param identity
     */
    void deleteByIdentity(String identity);

    /**
     * 根据身份证号查询客户
     *
     * @param identity
     * @return
     */
    Customer queryCustomerByIdentity(String identity);
}
